﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<base href="<%=basePath%>">

<title>科研项目管理系统</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="<%=basePath%>admin/css/css.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
	 function check(){
	  if(document.form1.username.value==""){
		  alert("用户名不能为空！");
		  document.form1.username.focus();
		  return false;
		  
	  }
	  if(document.form1.password.value==""){
		  alert("密码不能为空！");
		  document.form1.password.focus();
		  return false;
		  
	  }
	  if(document.form1.role.value=="－请选择－"){
		  alert("请选择角色！");
		  document.form1.role.focus();
		  return false;
		  
	  }
	  return true；
	  
  }
</script>
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="147" background="<%=basePath%>admin/images/top02.gif"><img src="<%=basePath%>admin/images/top03.gif" width="776" height="147" /></td>
  </tr>
</table>
<table width="562" border="0" align="center" cellpadding="0" cellspacing="0" class="right-table03">
  <tr>
    <td width="221"><table width="95%" border="0" cellpadding="0" cellspacing="0" class="login-text01">
      
      <tr>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="login-text01">
          <tr>
            <td align="center"><img src="<%=basePath%>admin/images/ico13.gif" width="107" height="97" /></td>
          </tr>
          <tr>
            <td height="40" align="center">&nbsp;</td>
          </tr>
          
        </table></td>
        <td><img src="<%=basePath%>admin/images/line01.gif" width="5" height="292" /></td>
      </tr>
    </table></td>
    <td>
	<form id="form1" action="<%=basePath %>projectlogin.action" method="post" onclick="return check();">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="35" class="login-text02">用&nbsp;&nbsp;户：<br /></td>
        <td><input name="teacherId" type="text" size="25" /></td>
      </tr>
      <tr>
        <td height="35" class="login-text02">密&nbsp;&nbsp;码：<br /></td>
        <td><input name="password" type="password" size="25" /></td>
      </tr>
      <tr>
        <td height="35" class="login-text02">角&nbsp;&nbsp;色：<br /></td>
  	<TD width="31%" height=33><SELECT id="role" name="role"> 
                    <OPTION value="2" selected>－请选择－</OPTION> 
					<OPTION value="0">&nbsp;&nbsp;教&nbsp;&nbsp;师 &nbsp; </OPTION>  
                    <OPTION value="1">&nbsp;管&nbsp;理&nbsp;员 &nbsp;</OPTION>
     </TD>
          </tr>
      <tr>
        <td height="35">&nbsp;</td>
        <td><input name="Submit2" type="submit" class="right-button01" value="确认登陆"/>&nbsp;&nbsp;
         <input name="reset" type="reset" class="right-button02" value="重 置" />
         </td>
      </tr>
      <TR>
      <td></td>
                <TD colSpan=5>
                  <DIV align="left"><font size="2" color="red" style="right">${message}</font> </DIV>
				 </TD>
			  </TR>
    </table>
	</form>
	</td>
  </tr>
</table>
</body>
</html>